package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dataTransmit.*;
import com.sky.entity.Orders;
import com.sky.pageQuery.HistoryOrdersPageQuery;
import com.sky.result.PageResult;
import com.sky.view.*;

import java.time.LocalDate;

public interface OrdersService extends IService<Orders> {

    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    void paySuccess(String outTradeNo);

    PageResult historyOrders(HistoryOrdersPageQuery historyOrdersPageQuery);

    void repetition(Long id);

    OrderVO orderDetail(Long id);

    void cancel(OrdersCancelDTO ordersCancelDTO) throws Exception;

    OrderStatisticsVO statistics();

    void complete(Long id);

    void rejection(OrdersRejectionDTO ordersRejectionDTO) throws Exception;

    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    void delivery(Long id);

    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    void userCancel(Long id) throws Exception;

    void reminder(Long id);

    TurnoverReportVO turnoverStatistics(LocalDate begin, LocalDate end);

    OrderReportVO ordersStatistics(LocalDate begin, LocalDate end);

    SalesTop10ReportVO top10(LocalDate begin, LocalDate end);
}
